<!DOCTYPE html>


<html lang="en">
  

    <head>
      <meta charset="utf-8" />
        
      <meta
        name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1"
      />
      <title>测试-开启TPCC测试和HTML报告 |  朝花夕拾</title>
  <meta name="generator" content="hexo-theme-ayer">
      
      <link rel="shortcut icon" href="/ww.ico" />
       
<link rel="stylesheet" href="/dist/main.css">

      
<link rel="stylesheet" href="/css/fonts/remixicon.css">

      
<link rel="stylesheet" href="/css/custom.css">
 
      <script src="https://cdn.staticfile.org/pace/1.2.4/pace.min.js"></script>
       
 

      <link
        rel="stylesheet"
        href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-bulma@5.0.1/bulma.min.css"
      />
      <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.19/dist/sweetalert2.min.js"></script>

      <!-- mermaid -->
      
      <style>
        .swal2-styled.swal2-confirm {
          font-size: 1.6rem;
        }
      </style>
    </head>
  </html>
</html>


<body>
  <div id="app">
    
      
    <main class="content on">
      <section class="outer">
  <article
  id="post-测试-开启TPCC测试和HTML报告"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    
    <header class="article-header">
       
<h1 class="article-title sea-center" style="border-left:0" itemprop="name">
  测试-开启TPCC测试和HTML报告
</h1>
 

      
    </header>
     
    <div class="article-meta">
      <a href="/2023/05/10/%E6%B5%8B%E8%AF%95-%E5%BC%80%E5%90%AFTPCC%E6%B5%8B%E8%AF%95%E5%92%8CHTML%E6%8A%A5%E5%91%8A/" class="article-date">
  <time datetime="2023-05-10T00:47:53.000Z" itemprop="datePublished">2023-05-10</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/GBase8s/">GBase8s</a>
  </div>
  
<div class="word_count">
    <span class="post-time">
        <span class="post-meta-item-icon">
            <i class="ri-quill-pen-line"></i>
            <span class="post-meta-item-text"> Word count:</span>
            <span class="post-count">1.1k</span>
        </span>
    </span>

    <span class="post-time">
        &nbsp; | &nbsp;
        <span class="post-meta-item-icon">
            <i class="ri-book-open-line"></i>
            <span class="post-meta-item-text"> Reading time≈</span>
            <span class="post-count">5 min</span>
        </span>
    </span>
</div>
 
    </div>
      
    <div class="tocbot"></div>




  
    <div class="article-entry" itemprop="articleBody">
       
  <h1 id="TPCC测试"><a href="#TPCC测试" class="headerlink" title="TPCC测试"></a>TPCC测试</h1><h2 id="基础环境配置"><a href="#基础环境配置" class="headerlink" title="基础环境配置"></a>基础环境配置</h2><h3 id="java环境"><a href="#java环境" class="headerlink" title="java环境"></a>java环境</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">gbasedbt:g31[/home/gbasedbt/tpcc]$java -version</span><br><span class="line">openjdk version &quot;1.8.0_242&quot;</span><br><span class="line">OpenJDK Runtime Environment (build 1.8.0_242-b08)</span><br><span class="line">OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)</span><br></pre></td></tr></table></figure>

<h3 id="软件包"><a href="#软件包" class="headerlink" title="软件包"></a>软件包</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">D:\soft\05.工作记录\01.项目记录\00.技术\TPCC和jmeter和TPCH\tpcc\benchmark5汪伟</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">1.1.1.7 /home/gbasedbt/tpcc</span></span><br><span class="line">gbasedbt:g31[/home/gbasedbt/tpcc]$ls -l</span><br><span class="line">总用量 2304</span><br><span class="line">drwxr-xr-x. 8 gbasedbt gbasedbt     149 9月   4 2021 benchmarksql-5.0</span><br><span class="line">-rw-rw-rw-. 1 gbasedbt gbasedbt 2353486 6月  15 12:46 benchmarksql-5.0_jdk8.tar.gz</span><br><span class="line">drwxrwxr-x. 2 gbasedbt gbasedbt     123 10月 21 2021 sql.gbase_100w</span><br><span class="line">-rw-rw-rw-. 1 gbasedbt gbasedbt    3262 6月  15 12:46 sql.gbase_100w.zip</span><br><span class="line">gbasedbt:g31[/home/gbasedbt/tpcc]$</span><br></pre></td></tr></table></figure>

<h3 id="空间准备"><a href="#空间准备" class="headerlink" title="空间准备"></a>空间准备</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br></pre></td><td class="code"><pre><span class="line">DATADIR=/data/g31</span><br><span class="line">touch $&#123;DATADIR&#125;/datachk02</span><br><span class="line">touch $&#123;DATADIR&#125;/datachk03</span><br><span class="line">touch $&#123;DATADIR&#125;/datachk04</span><br><span class="line">touch $&#123;DATADIR&#125;/datachk05</span><br><span class="line">touch $&#123;DATADIR&#125;/datachk06</span><br><span class="line">touch $&#123;DATADIR&#125;/datachk07</span><br><span class="line">touch $&#123;DATADIR&#125;/datachk08</span><br><span class="line">touch $&#123;DATADIR&#125;/datachk09</span><br><span class="line">touch $&#123;DATADIR&#125;/datachk10</span><br><span class="line">chmod 660 $&#123;DATADIR&#125;/datachk02</span><br><span class="line">chmod 660 $&#123;DATADIR&#125;/datachk03</span><br><span class="line">chmod 660 $&#123;DATADIR&#125;/datachk04</span><br><span class="line">chmod 660 $&#123;DATADIR&#125;/datachk05</span><br><span class="line">chmod 660 $&#123;DATADIR&#125;/datachk06</span><br><span class="line">chmod 660 $&#123;DATADIR&#125;/datachk07</span><br><span class="line">chmod 660 $&#123;DATADIR&#125;/datachk08</span><br><span class="line">chmod 660 $&#123;DATADIR&#125;/datachk09</span><br><span class="line">chmod 660 $&#123;DATADIR&#125;/datachk10</span><br><span class="line">onspaces  -c -d datadbs02 -p $&#123;DATADIR&#125;/datachk02 -o 0 -s 1024000  -k 16</span><br><span class="line">onspaces  -c -d datadbs03 -p $&#123;DATADIR&#125;/datachk03 -o 0 -s 1024000  -k 16</span><br><span class="line">onspaces  -c -d datadbs04 -p $&#123;DATADIR&#125;/datachk04 -o 0 -s 1024000  -k 16</span><br><span class="line">onspaces  -c -d datadbs05 -p $&#123;DATADIR&#125;/datachk05 -o 0 -s 1024000  -k 16</span><br><span class="line">onspaces  -c -d datadbs06 -p $&#123;DATADIR&#125;/datachk06 -o 0 -s 1024000  -k 16</span><br><span class="line">onspaces  -c -d datadbs07 -p $&#123;DATADIR&#125;/datachk07 -o 0 -s 1024000  -k 16</span><br><span class="line">onspaces  -c -d datadbs08 -p $&#123;DATADIR&#125;/datachk08 -o 0 -s 1024000  -k 16</span><br><span class="line">onspaces  -c -d datadbs09 -p $&#123;DATADIR&#125;/datachk09 -o 0 -s 1024000  -k 16</span><br><span class="line">onspaces  -c -d datadbs10 -p $&#123;DATADIR&#125;/datachk10 -o 0 -s 1024000  -k 16</span><br></pre></td></tr></table></figure>

<h3 id="建库"><a href="#建库" class="headerlink" title="建库"></a>建库</h3><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">dbaccess sysmaster <span class="operator">&lt;&lt;</span><span class="operator">!</span></span><br><span class="line"><span class="keyword">drop</span> database if <span class="keyword">exists</span> tpcc;</span><br><span class="line"><span class="keyword">create</span> database tpcc <span class="keyword">in</span> datadbs01 <span class="keyword">with</span> log;</span><br><span class="line"><span class="operator">!</span></span><br></pre></td></tr></table></figure>

<h3 id="建表"><a href="#建表" class="headerlink" title="建表"></a>建表</h3><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">cd <span class="operator">/</span>home<span class="operator">/</span>gbasedbt<span class="operator">/</span>tpcc<span class="operator">/</span>sql.gbase_100w</span><br><span class="line">dbaccess tpcc tableCreates.sql</span><br><span class="line">dbaccess tpcc indexCreates.sql</span><br><span class="line">dbaccess tpcc foreignKeys.sql</span><br><span class="line">dbaccess tpcc extraHistID.sql</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<h3 id="统计更新"><a href="#统计更新" class="headerlink" title="统计更新"></a>统计更新</h3><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">dbaccess tpcc buildFinish.sql</span><br></pre></td></tr></table></figure>



<h2 id="TPCC软件配置"><a href="#TPCC软件配置" class="headerlink" title="TPCC软件配置"></a>TPCC软件配置</h2><h3 id="添加驱动"><a href="#添加驱动" class="headerlink" title="添加驱动"></a>添加驱动</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">上传 D:\jdbc\gbase\gbasedbtjdbc_3.3.0_2_36477d.jar</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">到</span> </span><br><span class="line">/home/gbasedbt/tpcc/benchmarksql-5.0/lib/gbase/</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">目录下</span></span><br></pre></td></tr></table></figure>

<h3 id="run-x2F-props-gbase"><a href="#run-x2F-props-gbase" class="headerlink" title="run&#x2F;props.gbase"></a>run&#x2F;props.gbase</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br></pre></td><td class="code"><pre><span class="line">cd /home/gbasedbt/tpcc/benchmarksql-5.0/run</span><br><span class="line">cat &gt; props.gbase &lt;&lt;EOF</span><br><span class="line">db=gbase</span><br><span class="line">driver=com.gbasedbt.jdbc.Driver</span><br><span class="line">conn=jdbc:gbasedbt-sqli://1.1.1.3:60111/tpcc:GBASEDBTSERVER=g31;DB_LOCALE=zh_CN.utf8;CLIENT_LOCALE=zh_CN.utf8;IFX_LOCK_MODE_WAIT=60;IFX_ISOLATION_LEVEL=1U;OPTOFC=1;</span><br><span class="line">user=gbasedbt</span><br><span class="line">password=GBase123</span><br><span class="line"></span><br><span class="line">warehouses=10</span><br><span class="line">loadWorkers=2</span><br><span class="line"></span><br><span class="line">terminals=100</span><br><span class="line">//To run specified transactions per terminal- runMins must equal zero</span><br><span class="line">runTxnsPerTerminal=0</span><br><span class="line">//To run for specified minutes- runTxnsPerTerminal must equal zero</span><br><span class="line">runMins=2</span><br><span class="line">//Number of total transactions per minute</span><br><span class="line">limitTxnsPerMin=0</span><br><span class="line"></span><br><span class="line">//Set to true to run in 4.x compatible mode. Set to false to use the</span><br><span class="line">//entire configured database evenly.</span><br><span class="line">terminalWarehouseFixed=true</span><br><span class="line"></span><br><span class="line">//The following five values must add up to 100</span><br><span class="line">newOrderWeight=45</span><br><span class="line">paymentWeight=43</span><br><span class="line">orderStatusWeight=4</span><br><span class="line">deliveryWeight=4</span><br><span class="line">stockLevelWeight=4</span><br><span class="line"></span><br><span class="line">// Directory name to create for collecting detailed result data.</span><br><span class="line">// Comment this out to suppress.</span><br><span class="line">resultDirectory=my_result_%tY-%tm-%td_%tH%tM%tS</span><br><span class="line">osCollectorScript=./misc/os_collector_linux.py</span><br><span class="line">osCollectorInterval=1</span><br><span class="line">osCollectorSSHAddr=root@1.1.1.3</span><br><span class="line">osCollectorDevices=net_ens33 blk_sda</span><br><span class="line">EOF</span><br></pre></td></tr></table></figure>



<h3 id="灌数"><a href="#灌数" class="headerlink" title="灌数"></a>灌数</h3><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">cd <span class="operator">/</span>home<span class="operator">/</span>gbasedbt<span class="operator">/</span>tpcc<span class="operator">/</span>benchmarksql<span class="number">-5.0</span><span class="operator">/</span>run</span><br><span class="line">.<span class="operator">/</span>runLoader.sh props.gbase</span><br><span class="line"></span><br></pre></td></tr></table></figure>





<h2 id="TPCC开启测试–第一次"><a href="#TPCC开启测试–第一次" class="headerlink" title="TPCC开启测试–第一次"></a>TPCC开启测试–第一次</h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">cd /home/gbasedbt/tpcc/benchmarksql-5.0/run</span><br><span class="line">./runBenchmark.sh props.gbase</span><br><span class="line"></span><br></pre></td></tr></table></figure>





<h2 id="TPCC测试结果汇录"><a href="#TPCC测试结果汇录" class="headerlink" title="TPCC测试结果汇录"></a>TPCC测试结果汇录</h2><p>​	正常10万，加强50万。</p>
<table>
<thead>
<tr>
<th></th>
<th>CPU分配</th>
<th>TPCC仓库数量</th>
<th>终端数量</th>
<th>测试结果：TPMC</th>
<th>压测时CPU使用率</th>
</tr>
</thead>
<tbody><tr>
<td>物理机</td>
<td>96</td>
<td>100</td>
<td>400</td>
<td>46.97万</td>
<td>64%</td>
</tr>
<tr>
<td>虚拟机</td>
<td>8</td>
<td>10</td>
<td>40</td>
<td>13.95万</td>
<td>81%</td>
</tr>
</tbody></table>
<h2 id="TPCC开启测试-–-第2次-带html输出"><a href="#TPCC开启测试-–-第2次-带html输出" class="headerlink" title="TPCC开启测试 – 第2次 带html输出"></a>TPCC开启测试 – 第2次 带html输出</h2><p>benchmarksql 除了提供文字版输出, 还有 通过工具生成 html版本的报告 ，不过需要安装R语言和提前配置</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">cd /home/gbasedbt/tpcc/benchmarksql-5.0/run</span><br><span class="line">resultDirectory=$(date &#x27;+%Y%m%d-%H%M%S&#x27;) </span><br><span class="line">./runBenchmark.sh props.gbase</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">压测结束之后，使用命令</span></span><br><span class="line">sh generateReport.sh  $resultDirectory</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<p>这时发现，原来的bm5没有结果目录生成。</p>
<p>重新下载一个bm5看看：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">2.1 下载和编译</span><br><span class="line">    #从github 直接下载源码进行编译安装</span><br><span class="line">    mkdir /home/gbasedbt/tpcc/bm5Download</span><br><span class="line">    cd /home/gbasedbt/tpcc/bm5Download</span><br><span class="line">    git clone https://github.com/petergeoghegan/benchmarksql</span><br><span class="line">    #安装ant 编译工具</span><br><span class="line">    yum install -y ant</span><br><span class="line">    #修改源码添加对gbase支持</span><br><span class="line">    src/client/jTPCCConfig.java</span><br><span class="line">    	DB_GBASEDBT = 4;</span><br><span class="line">    src/client/jTPCC.java</span><br><span class="line">    	else if (iDB.equals(&quot;gbase&quot;))</span><br><span class="line">        dbType = DB_GBASEDBT;  	</span><br><span class="line">    #编译</span><br><span class="line">    cd /home/gbasedbt/tpcc/bm5Download/benchmarksql</span><br><span class="line">    ant</span><br><span class="line">还有一种是直接从官网下载zip安装包，直接解压缩即可。</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<p>可以再次测了：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">对新下载的benchmarksql做配置：</span></span><br><span class="line">cd /home/gbasedbt/tpcc/bm5Download/benchmarksql/run</span><br><span class="line">cp /home/gbasedbt/tpcc/benchmarksql-5.0/run/props.gbase ./</span><br><span class="line">mkdir /home/gbasedbt/tpcc/bm5Download/benchmarksql/lib/gbase/</span><br><span class="line">cp /home/gbasedbt/tpcc/benchmarksql-5.0/lib/gbase/gbasedbtjdbc_3.3.0_2_36477d.jar /home/gbasedbt/tpcc/bm5Download/benchmarksql/lib/gbase/</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">加载gbase驱动：</span></span><br><span class="line">vi /home/gbasedbt/tpcc/bm5Download/benchmarksql/run/funcs.sh </span><br><span class="line"> 修改1：</span><br><span class="line">        gbase)</span><br><span class="line">            cp=&quot;../lib/gbase/*:../lib/*&quot;</span><br><span class="line">            ;;</span><br><span class="line"> 修改2：</span><br><span class="line">	firebird|oracle|postgres|gbase)</span><br><span class="line">	</span><br><span class="line">vi /home/gbasedbt/tpcc/bm5Download/benchmarksql/run/props.gbase</span><br><span class="line"> 去掉注释：</span><br><span class="line">	resultDirectory=my_result_%tY-%tm-%td_%tH%tM%tS</span><br><span class="line"><span class="meta prompt_"> </span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">开始测试：</span></span><br><span class="line">cd /home/gbasedbt/tpcc/bm5Download/benchmarksql/run    </span><br><span class="line">./runBenchmark.sh props.gbase</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">压测结束之后，使用命令</span></span><br><span class="line">sh generateReport.sh  my_result_2022-08-24_114532</span><br><span class="line"></span><br></pre></td></tr></table></figure>





<p>这个报错要么是python脚本的os不匹配，要么是要收集的设备名字写错了：</p>
<p>12:45:05,551 [Thread-0] ERROR  OSCollector$CollectData : OSCollector, unexpected EOF while reading from external helper process </p>
 
      <!-- reward -->
      
    </div>
    

    <!-- copyright -->
    
    <div class="declare">
      <ul class="post-copyright">
        <li>
          <i class="ri-copyright-line"></i>
          <strong>Copyright： </strong>
          
          Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
          
        </li>
      </ul>
    </div>
    
    <footer class="article-footer">
       
<div class="share-btn">
      <span class="share-sns share-outer">
        <i class="ri-share-forward-line"></i>
        分享
      </span>
      <div class="share-wrap">
        <i class="arrow"></i>
        <div class="share-icons">
          
          <a class="weibo share-sns" href="javascript:;" data-type="weibo">
            <i class="ri-weibo-fill"></i>
          </a>
          <a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
            <i class="ri-wechat-fill"></i>
          </a>
          <a class="qq share-sns" href="javascript:;" data-type="qq">
            <i class="ri-qq-fill"></i>
          </a>
          <a class="douban share-sns" href="javascript:;" data-type="douban">
            <i class="ri-douban-line"></i>
          </a>
          <!-- <a class="qzone share-sns" href="javascript:;" data-type="qzone">
            <i class="icon icon-qzone"></i>
          </a> -->
          
          <a class="facebook share-sns" href="javascript:;" data-type="facebook">
            <i class="ri-facebook-circle-fill"></i>
          </a>
          <a class="twitter share-sns" href="javascript:;" data-type="twitter">
            <i class="ri-twitter-fill"></i>
          </a>
          <a class="google share-sns" href="javascript:;" data-type="google">
            <i class="ri-google-fill"></i>
          </a>
        </div>
      </div>
</div>

<div class="wx-share-modal">
    <a class="modal-close" href="javascript:;"><i class="ri-close-circle-line"></i></a>
    <p>扫一扫，分享到微信</p>
    <div class="wx-qrcode">
      <img src="//api.qrserver.com/v1/create-qr-code/?size=150x150&data=http://example.com/2023/05/10/%E6%B5%8B%E8%AF%95-%E5%BC%80%E5%90%AFTPCC%E6%B5%8B%E8%AF%95%E5%92%8CHTML%E6%8A%A5%E5%91%8A/" alt="微信分享二维码">
    </div>
</div>

<div id="share-mask"></div>  
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/tpcc/" rel="tag">tpcc</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%B5%8B%E8%AF%95/" rel="tag">测试</a></li></ul>

    </footer>
  </div>

   
  <nav class="article-nav">
    
      <a href="/2023/05/10/%E6%89%93%E5%8C%85%E5%8F%91%E5%B8%83Vuenpm%E9%A1%B9%E7%9B%AE/" class="article-nav-link">
        <strong class="article-nav-caption">上一篇</strong>
        <div class="article-nav-title">
          
            打包发布Vuenpm项目
          
        </div>
      </a>
    
    
      <a href="/2023/05/10/MyBlog%E6%9C%8D%E5%8A%A1%E5%90%AF%E5%8A%A8%E5%92%8Cwindows%E8%BD%AF%E4%BB%B6%E8%B0%83%E7%94%A8/" class="article-nav-link">
        <strong class="article-nav-caption">下一篇</strong>
        <div class="article-nav-title">MyBlog服务启动和windows软件调用</div>
      </a>
    
  </nav>

  
   
  
    
</article>

</section>
      <footer class="footer">
  <div class="outer">
    <ul>
      <li>
        Copyrights &copy;
        2023-2024
        <i class="ri-heart-fill heart_icon"></i> Wang Wei
      </li>
    </ul>
    <ul>
      <li>
        
      </li>
    </ul>
    <ul>
      <li>
        
        
        <span>
  <span><i class="ri-user-3-fill"></i>Visitors:<span id="busuanzi_value_site_uv"></span></span>
  <span class="division">|</span>
  <span><i class="ri-eye-fill"></i>Views:<span id="busuanzi_value_page_pv"></span></span>
</span>
        
      </li>
    </ul>
    <ul>
      
    </ul>
    <ul>
      
    </ul>
    <ul>
      <li>
        <!-- cnzz统计 -->
        
      </li>
    </ul>
  </div>
</footer>    
    </main>
    <div class="float_btns">
      <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>

    </div>
    <aside class="sidebar on">
      <button class="navbar-toggle"></button>
<nav class="navbar">
  
  <div class="logo">
    <a href="/"><img src="/images/ww.ico" alt="朝花夕拾"></a>
  </div>
  
  <ul class="nav nav-main">
    
    <li class="nav-item">
      <a class="nav-item-link" href="/">主页</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/archives">归档</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/categories">分类</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/tags">标签</a>
    </li>
    
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      
      <a class="nav-item-link nav-item-search"  title="Search">
        <i class="ri-search-line"></i>
      </a>
      
      
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
    </aside>
    <div id="mask"></div>

<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>请我喝杯咖啡吧~</p>
  <div class="reward-box">
    
    <div class="reward-item">
      <img class="reward-img" src="/images/alipay.jpg">
      <span class="reward-type">支付宝</span>
    </div>
    
    
    <div class="reward-item">
      <img class="reward-img" src="/images/wechat.jpg">
      <span class="reward-type">微信</span>
    </div>
    
  </div>
</div>
    
<script src="/js/jquery-3.6.0.min.js"></script>
 
<script src="/js/lazyload.min.js"></script>

<!-- Tocbot -->
 
<script src="/js/tocbot.min.js"></script>

<script>
  tocbot.init({
    tocSelector: ".tocbot",
    contentSelector: ".article-entry",
    headingSelector: "h1, h2, h3, h4, h5, h6",
    hasInnerContainers: true,
    scrollSmooth: true,
    scrollContainer: "main",
    positionFixedSelector: ".tocbot",
    positionFixedClass: "is-position-fixed",
    fixedSidebarOffset: "auto",
  });
</script>

<script src="https://cdn.staticfile.org/jquery-modal/0.9.2/jquery.modal.min.js"></script>
<link
  rel="stylesheet"
  href="https://cdn.staticfile.org/jquery-modal/0.9.2/jquery.modal.min.css"
/>
<script src="https://cdn.staticfile.org/justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js"></script>

<script src="/dist/main.js"></script>

<!-- ImageViewer -->

<!-- MathJax -->

<!-- Katex -->

<!-- busuanzi  -->
 
<script src="/js/busuanzi-2.3.pure.min.js"></script>
 
<!-- ClickLove -->

<!-- ClickBoom1 -->

<!-- ClickBoom2 -->

<!-- CodeCopy -->
 
<link rel="stylesheet" href="/css/clipboard.css">
 <script src="https://cdn.staticfile.org/clipboard.js/2.0.10/clipboard.min.js"></script>
<script>
  function wait(callback, seconds) {
    var timelag = null;
    timelag = window.setTimeout(callback, seconds);
  }
  !function (e, t, a) {
    var initCopyCode = function(){
      var copyHtml = '';
      copyHtml += '<button class="btn-copy" data-clipboard-snippet="">';
      copyHtml += '<i class="ri-file-copy-2-line"></i><span>COPY</span>';
      copyHtml += '</button>';
      $(".highlight .code pre").before(copyHtml);
      $(".article pre code").before(copyHtml);
      var clipboard = new ClipboardJS('.btn-copy', {
        target: function(trigger) {
          return trigger.nextElementSibling;
        }
      });
      clipboard.on('success', function(e) {
        let $btn = $(e.trigger);
        $btn.addClass('copied');
        let $icon = $($btn.find('i'));
        $icon.removeClass('ri-file-copy-2-line');
        $icon.addClass('ri-checkbox-circle-line');
        let $span = $($btn.find('span'));
        $span[0].innerText = 'COPIED';
        
        wait(function () { // 等待两秒钟后恢复
          $icon.removeClass('ri-checkbox-circle-line');
          $icon.addClass('ri-file-copy-2-line');
          $span[0].innerText = 'COPY';
        }, 2000);
      });
      clipboard.on('error', function(e) {
        e.clearSelection();
        let $btn = $(e.trigger);
        $btn.addClass('copy-failed');
        let $icon = $($btn.find('i'));
        $icon.removeClass('ri-file-copy-2-line');
        $icon.addClass('ri-time-line');
        let $span = $($btn.find('span'));
        $span[0].innerText = 'COPY FAILED';
        
        wait(function () { // 等待两秒钟后恢复
          $icon.removeClass('ri-time-line');
          $icon.addClass('ri-file-copy-2-line');
          $span[0].innerText = 'COPY';
        }, 2000);
      });
    }
    initCopyCode();
  }(window, document);
</script>
 
<!-- CanvasBackground -->

<script>
  if (window.mermaid) {
    mermaid.initialize({ theme: "forest" });
  }
</script>


    
    

  </div>
</body>

</html>